<?php
 
include('connection.php');
if(isset($_POST['event_id']) )
{
	$event_id=$_POST['event_id'];
	$title=$_POST['eventname'];
	$start_date=$_POST['start_date'];
	$expire_date=$_POST['expire_date'];
	$description=$_POST['description'];
	$status=$_POST['status'];
	
$sql = "UPDATE  event SET title='$title',start_date='$start_date',expire_date='$expire_date',description='$description',status='$status' WHERE event_id= '$event_id'";

$retval = mysql_query($sql,$con);
if(! $retval )
{
  die('Could not enter data: ' . mysql_error());
}

echo "Your data are submite successfully";

}

?>